package data.nanjing.expo.models.domain.dto.trade;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 交易中心服务商一览筛选信息
 *
 * @author ChanJi
 * @create 2018-06-14 15:32
 **/
public class ServiceScreenDto {
    /**
     * 当前页，默认为1
     */
    @Min(value = 1,message = "页码不能小于1")
    private Integer page=1;
    /**
     * 每页显示个数，默认为15
     */
    @Min(value = 1,message = "每页显示个数不能小于1")
    private Integer limit=15;
    @NotEmpty(message = "请输入分类id")
    private List<Integer> classify;
    /**
     * 属性id
     */
    private Integer attrId;
    /**
     * 属性值
     */
    private String attrValue;
    /**
     * 排序字段，默认为按照成交量排序
     */
    private String sort="sms.volume DESC";

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public List<Integer> getClassify() {
        return classify;
    }

    public void setClassify(List<Integer> classify) {
        this.classify = classify;
    }

    public Integer getAttrId() {
        return attrId;
    }

    public void setAttrId(Integer attrId) {
        this.attrId = attrId;
    }

    public String getAttrValue() {
        return attrValue;
    }

    public void setAttrValue(String attrValue) {
        this.attrValue = attrValue;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "ServiceScreenDto{" +
                "page=" + page +
                ", limit=" + limit +
                ", classify=" + classify +
                ", attrId=" + attrId +
                ", attrValue='" + attrValue + '\'' +
                ", sort='" + sort + '\'' +
                '}';
    }
}
